package com.me.common.enums;

import java.util.Objects;

/**
 * 删除标识
 *
 * @author jindouyun
 */
public enum DeleteFlagEnum {

    /**
     * 未删除
     */
    NOT_DELETE(0, "未删除"),

    /**
     * 删除
     */
    DELETE(1, "删除");

    private final Integer value;

    private final String desc;

    public Integer value() {
        return this.value;
    }

    DeleteFlagEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static boolean isDelete(Integer value) {
        return Objects.equals(DELETE.value, value);
    }

}
